'use strict'
var Koa = require('koa');

var templating = require('./templating')

var path = require('path')
const st = require('koa-static');
const { createConnection } = require('net');



const app = new Koa();


app.use(st(
    path.join( __dirname)
))

//app.use(require('koa-static')(path.resolve('css')))

app.use(templating)
app.use(async (ctx,next)=>{
    ctx.render('layout.html')

})


const prot = 3000

app.listen(prot)
console.log(`http://127.0.0.1:${prot}`);

